// 零散文件检测(独立)
import path from 'node:path';
import ffmpeg from 'fluent-ffmpeg';
import ffprobe from 'ffprobe-static';
import fs from 'node:fs';

import { readdir, stat } from '../common.js';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

ffmpeg.setFfprobePath(ffprobe.path);

// 输入路径
const inputDir = '\\\\10.1.1.5\\video\\_待处理\\脑残剧\\脑残剧';

const test = async () => {
    const files = await readdir(inputDir);
    files.forEach(async (file, index) => {
        const filePath = path.join(inputDir, file);
        const status = await stat(filePath);
        if (status === 1 && file.endsWith('.video')) {
        }
    });
};
